[Python] network programming Socket, TCP and UDP communication instancesI have studied network communication between C # And C ++ a long time ago. Refer to my article:C # network programming-client-server chat using TcpC # basic knowledge of network
The network is divided from bottom to topThe physical layer, the data link layer, the network layer, the Transport layer, the session layer, the presentation layer, and the application layer.with a preliminary understanding, I know that the IP
HTTP protocol: Simple Object Access Protocol, corresponding to the application layer, HTTP protocol is based on TCP connection
TCP Protocol: Corresponds to the transport layer
IP Protocol: Corresponds to the network layer
TCP/IP is a Transport
1. TCP/IP layered model
Of course, here we will only discuss the important layer-4
01. Application Layer (Application Layer): the Application layer is a broad concept. It has some similar system-level TCP/IP applications and Application protocols,
1, how to communicate between processes in the network?The local interprocess communication (IPC) is available in a number of ways, but can be summarized in the following 4 categories:Message delivery (pipeline, FIFO, Message Queuing)Synchronization
The network is divided from bottom to top : corresponding Physical Layer-- Data Link layer-- Network Layer--IP protocol Transport Layer--TCP protocol Session Layer-- presentation layer and Application Layer-HTTP protocol 1. TCP/IP connection Mobile
The difference between HTTP, TCP/IP protocol and socket Network is divided from bottom to top: www.2cto.com Physical Layer- &NBSP Data Link layer--network layer-- IP Protocol Transport Layer--
1, to understand the HTTP and socket first to be familiar with the network layer seven: The number of net transfer table should be,2,http protocol: Hypertext Transfer Protocol, which corresponds to the application layer, is used to encapsulate the
this article reprinted to http://www.2cto.com/net/201211/166537.html
The difference between HTTP, TCP/IP protocol and socket network from bottom to top: www.2cto.com Physical Layer-
Differences between Http, TCP/IP protocol and Socket
The network is divided from bottom up:
Physical Layer --
Data link layer --
Network Layer-IP protocol
Transport Layer-TCP protocol
Session Layer --
Presentation layer and application layer-HTTP
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.